package com.vr.cloudpicture.manager.websocket.strategy;

import com.vr.cloudpicture.manager.websocket.model.PictureEditRequestMessage;
import com.vr.cloudpicture.model.dto.user.UserLogin;
import org.springframework.web.socket.WebSocketSession;

/**
 * 图片编辑消息处理策略
 *
 * @author hzh
 * @date 2025/05/28
 */
public interface PictureEditMessageStrategy {

    /**
     * 处理图片编辑请求消息
     *
     * @param requestMessage 图片编辑请求消息
     * @param session        webSocket会话
     * @param user           用户信息
     * @param pictureId      图片id
     * @throws Exception 异常
     */
    void handle(PictureEditRequestMessage requestMessage, WebSocketSession session, UserLogin user, Long pictureId) throws Exception;
}
